package com.loooooo.pm2024.web.session;

public class SessionContextHolder {

    private static ThreadLocal<SessionContext> threadLocal = new ThreadLocal<>();

    public static void put(SessionContext t) {
        threadLocal.set(t);
    }

    @SuppressWarnings("unchecked")
    public static SessionContext get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

}
